package com.digitalxpert.jargle.ejb;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import com.digitalxpert.jargle.interfaces.JarGleServiceLocal;
import com.digitalxpert.jargle.persistence.JGClass;

@Stateless
public class JarGleServiceBean implements JarGleServiceLocal{
	@PersistenceContext(unitName = "jg_manager")
	private EntityManager manager;
	public Long createJGClass(JGClass cl) {
		manager.persist(cl);
		return cl.getId();
	}
}
